package axis

Import Path
	github.com/K-Phoen/grabana/timeseries/axis (on go.dev)

Dependency Relation
	imports 3 packages, and imported by 2 packages

Involved Source Files axis.go
Package-Level Type Names (total 4)
/* sort by: | */
Axis represents a visualization axis. func New(fieldConfig *sdk.FieldConfig, options ...Option) (*Axis, error)
Option represents an option that can be used to configure an axis. func Decimals(decimals int) Option func Label(label string) Option func Max(value float64) Option func Min(value float64) Option func Placement(placement PlacementMode) Option func Scale(mode ScaleMode) Option func SoftMax(value int) Option func SoftMin(value int) Option func Unit(unit string) Option func New(fieldConfig *sdk.FieldConfig, options ...Option) (*Axis, error) func github.com/K-Phoen/grabana/timeseries.Axis(options ...Option) timeseries.Option
PlacementMode represents the axis display placement mode. func Placement(placement PlacementMode) Option func github.com/K-Phoen/grabana/timeseries/fields.AxisPlacement(placement PlacementMode) fields.OverrideOption const Auto const Hidden const Left const Right
ScaleMode represents the axis scale distribution. func Scale(mode ScaleMode) Option const Linear const Log10 const Log2
Package-Level Functions (total 10)
Decimals sets how many decimal points should be displayed.
Label sets a Y-axis text label.
Max defines a hard maximum value for the axis.
Min defines a hard minimum value for the axis.
New creates a new Axis configuration.
Placement defines how the axis should be placed in the panel.
Scale sets the scale to use for the Y-axis values..
SoftMax defines a soft maximum value for the axis.
SoftMin defines a soft minimum value for the axis.
Unit sets the unit of the data displayed in this series.
Package-Level Constants (total 7)
const Auto PlacementMode = "auto"
const Hidden PlacementMode = "hidden"
const Left PlacementMode = "left"
const Linear ScaleMode = 0
const Log10 ScaleMode = 2
const Log2 ScaleMode = 1
const Right PlacementMode = "right"